package com.kai.service.data.response.upload;

import com.kai.service.data.dto.upload.UploadFileInfoDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;

import java.util.List;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
@Schema(description = "上传任务响应参数")
public class UploadTaskResponse {

    /**
     * 是否完成上传（是否已经合并分片）
     */
    @Schema(description = "是否完成上传（是否已经合并分片）", requiredMode = Schema.RequiredMode.REQUIRED)
    Boolean isFinished;

    /**
     * 文件地址
     */
    @Schema(description = "文件地址", requiredMode = Schema.RequiredMode.REQUIRED)
    String url;

    /**
     * 上传文件记录信息
     */
    @Schema(description = "上传文件记录信息")
    List<UploadFileInfoDto> uploadFileInfos;
}
